import {EntityId, PageQueryParams} from "kf-web-library";
import {FrontArticle, FrontJournal, FrontJournalColumn, FrontJournalPeriod, User} from "@/services";

/** 文章收藏 */
export interface FrontCollectionArticlePageQueryParams extends Partial<PageQueryParams> {

}


export interface FrontArticleCollection {
  id: EntityId; //id
  article: FrontArticle; //文章
  user: User; //用户
  createTime: string; //创建时间
  modifyTime: string; //修改时间
}


/** 期刊收藏 */
export interface FrontCollectionJournalPageQueryParams extends Partial<PageQueryParams> {

}


export interface FrontJournalCollection {
  id: number; //id
  journal: FrontJournal; //期刊
  user: User; //用户
  createTime: string; //创建时间
  modifyTime: string; //修改时间
}

/** 期刊刊期收藏 */
export interface FrontCollectionColumnPageQueryParams extends Partial<PageQueryParams> {
  existJournalId?: boolean;
  journalId?: EntityId;
  searchText?: string;
}

export interface FrontCollectionColumnByJournalQueryParams{
  searchText?: string;
}



export interface FrontJournalPeriodCollection{
  id: number; //id
  period: FrontJournalPeriod; //刊期
  user: User; //用户
  createTime: string; //创建时间
  modifyTime: string; //修改时间
  createUserId: number; //${column.comment}
  modifyUserId: number; //${column.comment}
}




/** 栏目收藏 */
export interface FrontCollectionColumnPageQueryParams extends Partial<PageQueryParams> {

}


export interface FrontJournalColumnCollection {
  id: EntityId; //id
  journalColumn: FrontJournalColumn; //栏目
  user: User; //用户
  createTime: string; //创建时间
  modifyTime: string; //修改时间
}

export interface JournalColumnCollection_JournalGroup{
  journal: FrontJournal; //期刊
  total: number; //收藏期刊栏目数量
}



